package com.travel.feign;

import com.travel.common.CommonRes.RestResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@FeignClient("sailing-service")
public interface LoginFeign {

    @GetMapping(value = "/Verification/getGenerate")
    public String getGenerateVerificationInfo(@RequestParam("name") String name,
                                                                      @RequestParam("phoneNumber") String phoneNumber,
                                                                      @RequestParam("effectiveTime") int effectiveTime);

    @GetMapping(value = "/Verification/getVerify")
    public RestResponse<Boolean> getVerify(@RequestParam("name") String name, @RequestParam("verificationKey") String verificationKey, @RequestParam("verificationCode") String verificationCode);
}
